package com.hp.mapper;

import com.hp.entity.*;

import java.util.List;

public interface UserMapper {
    List<Role> getAllRole();

    User login(User user);

    List<Permissions> getPermissions(Integer id);

    List<User> findAll(User user);

    User findById(User user);

    int add(Patient patient);

    int delete(User user);
    List<User> selectAll(String email);
    List<User> findAlle(String email);
    int update(User user);
    User findAlltow(String email);
    int updatetow(User user);

    List<User> addfind(String email);

    List<Role> selectrole();

    int add1(UserRole userRole);
}
